from rest_framework.pagination import LimitOffsetPagination,PageNumberPagination



# LimitOffsetPagination 偏移量分页器
# 100  规定10篇    偏移量开始进行计算   5  展示5-5+10   1-1+10
class ArticLimitOffsetPagination(LimitOffsetPagination):
    default_limit = 3 # 展示两条
    max_limit = 20  # 每页最大100条



# PageNumberPagination 页数分页器
#100   10   10
class ArticPageNumberPagination(PageNumberPagination):
    page_size = 2
    page_size_query_param = 'size'
    max_page_size = 20 # 每页最大条数



